(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/member/suggest/suggest" ], {
    "03fb": function(n, o, t) {
        t.r(o);
        var e = t("bd62"), i = t("e6ef");
        for (var r in i) "default" !== r && function(n) {
            t.d(o, n, function() {
                return i[n];
            });
        }(r);
        t("ab14");
        var a = t("f0c5"), c = Object(a.a)(i.default, e.b, e.c, !1, null, "23c4f750", null, !1, e.a, void 0);
        o.default = c.exports;
    },
    5569: function(n, o, t) {},
    ab14: function(n, o, t) {
        var e = t("5569");
        t.n(e).a;
    },
    bd62: function(n, o, t) {
        t.d(o, "b", function() {
            return e;
        }), t.d(o, "c", function() {
            return i;
        }), t.d(o, "a", function() {});
        var e = function() {
            this.$createElement, this._self._c;
        }, i = [];
    },
    e19a: function(n, o, t) {
        Object.defineProperty(o, "__esModule", {
            value: !0
        }), o.default = void 0;
        var e = {
            data: function() {
                return {
                    payload: {
                        content: "",
                        contact: ""
                    },
                    imgUrl: [],
                    max: 3
                };
            },
            methods: {
                remove: function(n) {
                    this.imgUrl = this.imgUrl.filter(function(o, t) {
                        return t !== n;
                    });
                },
                upload: function() {
                    var n = this;
                    this.$api.uploadImage(this.max - this.imgUrl.length, function(o) {
                        "1" == o.code ? n.imgUrl.push(o.data) : n.$common.errorToShow(o.msg);
                    });
                },
                submit: function() {
                    var n = this, o = this.payload, t = o.content, e = void 0 === t ? "" : t, i = o.contact, r = void 0 === i ? "" : i;
                    if ("" !== e) if (e.length < 10) this.$common.errorToShow("问题描述不少于10个字"); else if ("" !== r) {
                        var a = JSON.parse(JSON.stringify(this.payload));
                        this.imgUrl.length > 0 && (a.images = JSON.stringify(this.imgUrl)), this.$api.addopinionApi(a, function(o) {
                            "1" == o.code ? (n.$common.successToShow(o.msg), n.payload = {
                                content: "",
                                contact: ""
                            }, n.imgUrl = []) : n.$common.errorToShow(o.msg);
                        });
                    } else this.$common.errorToShow("联系方式不得为空"); else this.$common.errorToShow("问题描述不得为空");
                }
            }
        };
        o.default = e;
    },
    e2bb: function(n, o, t) {
        (function(n) {
            t("98af"), e(t("66fd"));
            var o = e(t("03fb"));
            function e(n) {
                return n && n.__esModule ? n : {
                    default: n
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = t, n(o.default);
        }).call(this, t("543d").createPage);
    },
    e6ef: function(n, o, t) {
        t.r(o);
        var e = t("e19a"), i = t.n(e);
        for (var r in e) "default" !== r && function(n) {
            t.d(o, n, function() {
                return e[n];
            });
        }(r);
        o.default = i.a;
    }
}, [ [ "e2bb", "common/runtime", "common/vendor" ] ] ]);